package com.singleton;

public class SingletonTest1 {
    private SingletonTest1(){}
    private static final SingletonTest1 t = new SingletonTest1();
    public static SingletonTest1 getInstance(){
        return t;
    }

    public static void main(String[] args) {
        SingletonTest1 t1 = SingletonTest1.getInstance();
        SingletonTest1 t2 = SingletonTest1.getInstance();
        System.out.println(t1 == t2);
    }
}
